home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Header Files / Intl Includes / BRTables.h < prev    next >
Encoding:
Text File  |  1993-04-22  |  3.5 KB  |  113 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //      File:        BRTables.h
  4. //      Release Version:    1.0d1
  5. // 
  6. //      Creation Date:        March 1993
  7. // 
  8. //      COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED -- RIGHTS
  9. //      RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT NOTICE IS
  10. //      PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  11. // 
  12. //      THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  13. //      CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  14. //      EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  15. // 
  16. //      RESTRICTED RIGHTS LEGEND
  17. //      Use, duplication, or disclosure by the Government is subject to restrictions as Set
  18. //      forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and Computer
  19. //      Software clause at DFARS 252.227-7013. Symantec Corporation, 10201 Torre Avenue,
  20. //      Cupertino, CA 95014.
  21. // 
  22. //=======================================================================================
  23.  
  24.  
  25. #ifndef    BRTABLES_H
  26. #define BRTABLES_H
  27. #endif
  28.  
  29.  
  30. #ifndef    BRWRISYS_H
  31. #include "BRWRISYS.H"
  32. #endif
  33.  
  34.  
  35. //---------------------------------------------------------------------------------------
  36. //    Forward class declarations
  37. //---------------------------------------------------------------------------------------
  38.  
  39. class BR_CLocale;
  40. class BR_CScriptProperties;
  41. class     BR_CFormat;
  42. class BR_CCharacterAttributes;
  43.  
  44. //========================================================================================
  45. //    CLASS BR_CTable    
  46. //========================================================================================
  47.  
  48. class BR_CTable 
  49. {        //    this class will be using collections to represent the data
  50. public :
  51.     BR_CTable();
  52.     ~BR_CTable();
  53. protected :
  54.  
  55. private :
  56.     
  57. };
  58.  
  59. //========================================================================================
  60. //    CLASS BR_CTranslationTable    
  61. //========================================================================================
  62.  
  63. class BR_CTranslationTable : public BR_CTable
  64. {
  65. public:
  66.     BR_CTranslationTable();
  67.     ~BR_CTranslationTable();
  68.  
  69.     BR_CUnicode CharacterToUnicode(BR_TCharacter sourceCharacter,
  70.                                    BR_CCharacterSet::CharacterSetID sourceCodePage = gCurrentLocale.fExternalCharacterSet);
  71.  
  72.     BR_CUnicode* StringToUnicode(BR_TCharacter* sourceString,
  73.                                  BR_CCharacterSet::CharacterSetID sourceCodePage = gCurrentLocale.fExternalCharacterSet);
  74.  
  75.     BR_TCharacter CharacterFromUnicode(BR_CUnicode sourceCharacter,
  76.                                        BR_CCharacterSet::CharacterSetID targetCodePage = gCurrentLocale.fExternalCharacterSet);
  77.  
  78.     BR_TCharacter* StringFromUnicode(BR_CUnicode* sourceString,
  79.                                      BR_CCharacterSet::CharacterSetID targetCodePage = gCurrentLocale.fExternalCharacterSet);
  80.  
  81. protected:
  82.     short UniToCPXlateCharacter(unsigned short Character,
  83.                                 void* TranslationTablePtr);
  84.     void* BedLoadTransTable(unsigned short MapResourceID);
  85.  
  86. private:
  87.  
  88. };
  89.  
  90.  
  91.  
  92.  
  93. //========================================================================================
  94. //    CLASS BR_CCasingTable    
  95. //========================================================================================
  96.  
  97. class BR_CCasingTable : public BR_CTable
  98. {
  99. public:
  100.     BR_CString ToUpper(const BR_CString inString);
  101.     BR_CString ToLower(const BR_CString inString);
  102. protected:
  103.     BR_CTable* LoadCasingTable();
  104.     BR_CTable* LoadCasingTable(BR_LocaleID = UNICODE);
  105.     BR_CTable* LoadCasingTable(const BR_CLocale someLocale);
  106. private:
  107.  
  108. };
  109.  
  110.  
  111.  
  112.  
  113.